check if cache directory is writeable