module: use path.sep instead of custom solution

Instead of using a custom solution for path delimiters we can use
path.sep in Module._initPaths
module: add test for module.globalPaths

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