Issue
The script attempts to write a cache file to /tmp, which returns a permission denied error in some environment.
Proposed Solution
- Provide the user with an option to store the cache.
- Provide the user with an option to change the cache directory.