Keep downloaded tarball sometimes

In slow Internet environment, downloading a source tarball takes a lot of time.
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.