attempt to use TMPDIR if set