Make platform check work on node-webkit