build and extract: now detect cpio and gzip errors.