update semver comparison to latest semver spec