Fix manage.versions version comparison

Fixes #14788