Added dist_longjob.sh to deal with checkpointing