Fix 'require' for emscripten modules in nodejs

Fixes #2920
how about building `path_from_root('tests', 'hello_world.c')`, then checking for non-empty output (of "hello, world")?