avoid // in path otherwise libarchive won't apply properly the mode