get_module_dirpath returns incorrect values with nested modules. ...

...Use more reliable method of locating modules.