Test for cache directory existence before moving it