Fix 'require' for emscripten modules in nodejs

Fixes #2920
no need for the get_dir stuff, you are guaranteed to be inside the test dir. Just use `"main.c"` etc.