To be sure this is a CentOS distribution, isn't it better to check the content of this file?

E.g: by adding a test on the return of this command : ```cat /etc/redhat-release | awk '{print $1}'``` (must return "CentOS") or anything else, if you have a better idea.