__dirname is undef in node-webkit