Used __dirname instead of process.cwd