Fix handling of single-digit semver constraints