Fix getBestVersion to use SemVer ordering instead of just choosing the youngest tag.