Update wait_for_emulator script.