avoid false detection of redhat systems by moving them to the end of detection, fix #2402