Fix wait_for_emulator permission