add support for more tarball format
Merge pull request #31 from jianingy/tarball

add support for more tarball format