fix #46 https tar download fails behind proxy

to be tested by @mjcarrol, and for review