TMPDIR check fix