getModulesDep: use regex for searching module names in modules.dep
Fixes an issue where some modules might have both - and _ in the name... Also refactored this to make testing easier.
Fixes an issue where some modules might have both - and _ in the name... Also refactored this to make testing easier.