Update launch.sh

Improve the script stability