Use cwd() instead of __dirname