fixed semver for old versions of npm