fix kernel check script on centos6