Make download of tarballs more robust

Prevents 500 / 504 responses being ignored.
Merge pull request #168 from jabley/robust-tarball-download

Make download of tarballs more robust