Added conditional waiting for the SSH port to initialize