Updated to wait for the remote host to come up before doing remote builds