Support text in node-webkit.

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