Fix AVX2 detection bug on some CPUs