Fix buggy/incomplete detection of AVX/AVX2 support