Fix 'require' for emscripten modules in nodejs

Fixes #2920
Do you know if `require('./myfile.js')` works on windows in node?