Made semver compatible with older node versions