Properly detect node.js vs. Cocoa2d