Don't format namenode if it is already formatted
Add wait to make sure all ssh's finish