Respect NODE_PATH and configured file extensions when resolving modules