Added version number extraction

Version number can have other formats (e.g `v10.1.1+git`). This PR adds the ability to extract the version number information from these version numbers.