Respect configured file extensions for module resolution