Fixed bugs in loop_sq_po.sh and loop_sq_van.sh

We have to echo out something to stdout for it to stop executing the
rest of the loop.

Put in a check to see if the loop_xxx.output file contains results from
previous first runs if this is also a first run.