FileUtils: Fix libarchive error checking when copying data from one archive to another