CB-5349: fixed regression in update script