Fix 'run nw as node'

Fix rogerwang/node-webkit#2664