Refactor centos files