add wait_for_emulator build script