The source project of this merge request has been removed.
Default to using /tmp for temporary directory base if both XDG_CACHE_HOME and TMPDIR are not defined in the environment.
Without this patch the script would end up trying to create temporary directories in the root and fail.