Support both tar.gz and tar.bz2 archives. Fixes #20

Fixes #20

Reviewers: @mhyee