Switch order of launching head and compute nodes.
Block while waiting for compute nodes to come up.
make launching more robust
Make sure headnode is up before staring pbs_mom