Add check to see if cache directory is writable