Honor $TMPDIR like g_get_tmp_dir()