fix issue with module path search running after proper path is located