Fix "mode file too large" errors when restoring huge backups.