Use better test to distinguish node.js from other environments.