Updates to the PBS distributed run script.

Tried it on delta, and it runs fine. Surprisingly,
sleeping on a $JOBDONE is the most easy and reliable way
to check for a qsub job completion (so reverted back to
doing that).