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.