Fix generic version parsing to not cross white space

This tweaks the generic version parsing such that when it is looking for the minor version, it does not include white space and cause it to span multiple tokens in the user agent string.

Fixes #55
Fixes #58