set TMPDIR if not set (on OS X)