Use temp dir for mounting squashfs image.
Count the files in the squashfs image without piping to wc -l.
Unthreadify FileCopy in unsquashfs.
Better call to rsync in unsquashfs.