Add ability to change caches directory