Fixed environment check for node.js.