Update wait-for-emulator script