modified centos6.sh to become platform independent