Use var dir as base for cache directories