Keep downloaded tarball sometimes

In slow Internet environment, downloading a source tarball takes a lot of time. It is painful to re-download the tarball.
Therefore, do not delete the tarball if `tar xf` fails or user uses `-k/--keep` to keep the source.
Additionally, use `--continue` option of `curl` and `wget` to resume download if previous download is interrupted.