Add check for node's style require.

When running in node-webkit, honor both require() and r.js
require.nodeRequire(). Allow entering the node branch of the code in the
latter case.