Should not assume that cwd is writable. For instance, when running in read-only containers such as Singularity.
The default value should be a directory specifically purposed for temporary files. /tmp, $TMPDIR, or even better, something like tempfile.mkdtemp.
Related: LiberTEM/LiberTEM#80