fix for el5 and el6 detection