updated __dirname to process.env.PWD for heroku