Fixed assertion error in centos 7 detection