write to $*TMPDIR instead of (maybe readonly) cwd