fix kernel version detection in switch driver