make nw run as node

Part of rogerwang/node-webkit#213