Create the cache dir correctly.