module: add test for module.globalPaths

Inject process.NODE_ENV to make Module._initPaths testable,
which sets Module.globalPaths