Allow for CentOS style libgeos version strings

CentOS has a space seperated version string for libgeos such as
'3.4.2-CAPI-1.8.2 r3921'. This simple fix only checks the first part of
the space seperated version string.