Allow configuration of cache directory