Fix bug in reading a version number from a string

It only accepted single digits, which means '0.*.9' and '09.1' both match for 0.9.1 and nothing will match for 0.10.*.
Merge pull request #1 from gvx/patch-1

Fix bug in reading a version number from a string