Repaired retain_latest_n_backups function and created corresponding test
repaired backup_script.bash
repaired backup_script.bash