Restore wait_for_emulator.sh