Fix kernel version checking