Fix for running under node-webkit