Fix #1060: AgaviConfigCache::writeCacheFile() permission error handling is broken