add support for downloading non-bzip2 tarballs

TODO: find faster (portable) way to determine compression type