Make download of tarballs more robust

Prevents 500 / 504 responses being ignored.