Update stitch.sh

dont process already processed files
exit on error