Parse kernel versions containing exotic characters (eg + ~)

Some distributions append extra version numbers to packages characters
like + and ~ as well as -. To play it safe we treat all non-digit
characters as separators.

Signed-off-by: David Scott <dave.scott@citrix.com>