Add support for node-webkit environment.

Node-webkit allows loading with require in node's context, so just just
skip the node support if it is node-webkit.