Create $TMPDIR only if the var is there.