Fixed some bugs in launcher.sh file