more robust detection of kernel naming conventions