Set permissions on cache directory