Account for actual location of the directories to cache.