try to guess a $TMPDIR if none is set