make script centos compatible