Fixed incompatibility with modules that do not contain Modulefile or metadata.json