Change description to shell script to include shells other than bash like zsh or ksh
Change function syntax to be POSIX-compliant. No function keyword and a space between () and {
Change command_exists function to be POSIX-compliant. command seems to be more portable than type