Fix tip-of-train version identification
Instead of comparing the version strings first, use the version tuple as the
sort key. Tuples are sorted by comparing individual elements, so instead of sorting 5.2.9
as greater than5.2.10
we compare (5, 2, 9)
with (5, 2, 10)
and correctly identify 5.2.10 as the highest version.