use TMPDIR environment variable

something like that ?
@mfischer-zd