Repeatedly run chdir on the client and engines
Repeatedly run chdir on the client and engines

As getting all of the engines switched to the same directory seems to be
an issue on the cluster sometimes, repeatedly switch directories until
all engines and the client note that they are using the same directory.
This way we can make sure any stragglers are taken care of.

nanshe-org/nanshe_workflow,DudLab/nanshe_workflow