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