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.
Don't we need to escape dots? Since they are a wildcard in regexp?