Refactored install_github() and install_bitbucket() per Hadley