Adds flag to give back SSH url instead of HTTP

This is very strange, I tested it several times and it worked, but now I'm getting the same error. I must have made some other change... I'll check the diff.