getModuleName throw an error for file which are not directly in module