More robust kernel check.