Support both .tar.gz and .tar.lzma package formats