fix selinux detection for CentOS 7