buildsystem: added more fixes to python.cmake

this should fix an issue that was reported with ubuntu 13.10

PYTHONLIBS_VERSION_STRING ended with a plus sign, which caused find_package(PythonInterp) to fail.
This hack strips away any trailing garbage.