wait_for_instances reimplemented to be AnyEvent friendly; ssh_with_return() used to wrap ssh_cmd to avoid STDERR issues