ENH: prefer XDG_CACHE_HOME for weave catalog cache

backport of #2982