fix el7 detection