Fixed the recursion in backup_and_edit_files().