Fixes #3090 using CACHE_DIR for the auth file instead of /tmp