Add kernel version checks for complex checks with logical operations