Use /tmp instead of ~/.cache for temporary directory