ensured temporary cwd exists