Bug fixes to Windows node.js

The regex was capturing the space after executable name but not
replacing it which meant parameters glommed on to the exe name.
The $_ENV superglobal is not normally set in production environments
so we have to select the environment variables to inherit by name.