Parse versions in semver format

Change-Id: Icb3981736918154898cff0c98c472bc8bb36f1c6