fix a bug parsing version numbers with a hyphen at the end

Using the latest Debian BBB image on beagleboard.org and noticed that the library failed to detect the proper version because running `uname -r` returns "3.8.13-bone47".  This is a quick fix to pre-split the version string in order to separate that part out.