[MASSEMBLY-638] SSupport tgz and tbz2 format

Patch by Sergei Ivanov