Fix curl --proto and --proto-redir with SSL protocols (https, etc)

curl --proto and --proto-redir actually does NOT work with SSL protocols.

Test:
curl --proto -https https://github.com
curl -L --proto -http --proto-redir -https http://github.com