Fix s3 version restore for keeping current version

Followup from https://github.com/cargomedia/CM/pull/1230