allow cache directory to be easily configurable