Replacing __dirname with process.env.PWD