Use __dirname instead of process.cwd

process.cwd refers to the directory in which file was executed, not the directory in which it lives