Query process.env when running in Node.js for getEnv

Ideally, the 'ENV' variable should be setup correctly. But I am not sure about conflicting values. This approach checks process.env as a fallback. 
If `process.env` doesn't exist, then this will abort. Perhaps test for the existence of that as well?