Fixed some bugs in launcher.sh file (2)