Use /var/cache and ~/.cache on Linux
Linuxbrew: Use xdg-open