Move the kernel detection to arch specific files
Make kernel detection work without suffix