correctly differentiating between node.js, node-webkit and the browser