Add wait for emulator bash script