detect centos version and set repo url accordingly