add wait for emulator script and move snap-ci scripts