Be smarter about setting NativeRequire.require