Use proxies as necessary when dealing with remote repos

There might be other places that should be fixed too, but this is the one that got things working for me