Stricter checking for node.js. We need to also check to see if the 'process' variable is defined because some front-end frameworks (like Thorax) use modules.