Fix detection of M0+, M3, M4 more cleaner. Fix the issue of SAM3X not being detected at all