Updates plist.js to work with node-webkit

Plist assumes a window object means we are not running node. We need to prevent this to use plist in node-webkit.