More hardy node environment check

Checking only `module` is causing issues with other modules in a browser. The actual issue is caused when testing with angular which added a `module` function to the browser. This module then adds a `module.exports` property. Finally, another module that checks both thinks we're in node and tries to do a `require` for additional data which causes a `ReferenceError`.