Moving s3 pillar cache directory creation out of init and into _get_cache_dir()

This patch addresses @cachedout's concerns in issue #12386.