Use /tmp if TMPDIR or TEMP is unavailable