uses process.cwd() to use current working dir for temp file