Update persistent_emulator.sh

clean code