Patch require in node.js prelude for imports in running scripts
Set $nopeRequire globally to simulate sys.path initialisation