Fixed code to allow gitlab-shell to connect over HTTPS