ParseVersion: use regexp to parse final version string; Fixes #2