kerninst: Use || instead of -o and add a check for the kernel version.