Fix module lookup bug for code files (improper handling of finding the path)