Simplify cmp_versions