Fix https stuff for curl downloads