fix extract-firmware.sh, uncramfs_all.sh, and unsquashfs_all.sh, plus src/webcomp-tools/common.c