restore_jenkins_cfgs: fixed double-counting in restore