Fix bug with cookie cache; we need to use the global temp directory (platform-agnostic)