checkout centos/ubuntu code based on the host os