Changing __dirname to process.cwd() for default directories.