Changed findModule method to be more forgiving to module loaders.