check if cache directory is writable