package.json fix, and wrongly-used __dirname fix