Fix generic version parsing to not cross whitespace

This tweaks the generic version parsing such that when it is looking
for the minor version, it does not include whitespace and cause it
to span multiple tokens in the user agent string.
Merge pull request #61 from dougwilson/fix/generic-version-parsing

Fix generic version parsing to not cross white space