Smarter handling of backup files.