Fix a bug which cause "dash" can't execute "${DOTFILES}/cmake/launcher.sh", "/bin/sh" is symbolic link to "/bin/dash" on Ubuntu, "dash" is faster than "bash", it intends to execute shell script instead of shell interactive and it is very restrict on POSIX standard, so writing "dash" script is harder then writing "bash" script. The method used to get all parameters except the last one can't work in dash, so we use "shift" to eliminate the last parameter when we have at least one parameter.
Fix a bug which cause "dash" can't execute "${DOTFILES}/cmake/launcher.sh", "/bin/sh" is symbolic link
to "/bin/dash" on Ubuntu, "dash" is faster than "bash", it intends to execute shell script instead of
shell interactive and it is very restrict on POSIX standard, so writing "dash" script is harder then
writing "bash" script. The method used to get all parameters except the last one can't work in dash,
so we use "shift" to eliminate the last parameter when we have at least one parameter.

Johnson9009/dotfiles,Johnson9009/dotfiles