Relax the kernel version string format.

It now parses versions like major.minor-* as used by some VMs.