strip path for tar files