[PLXCOMP-131] Support ustar

Patch by Tomasz Welman, applied with minor modifications