check if GitHub is acessible via https, and automatically switch to ssh otherwise

Check if it is possible to contact GitHub over https, and otherwise automatically fall back to SSH.

Should simplify the life of people using CMSSW on the online cluster.