changed file location to personal new directory
changed stop command from sudo to su
fixed the check for the newest version installed
made script portable for linux and BSD
/bin/bash VS /usr/local/bin/bash
SEE
http://stackoverflow.com/questions/5159711
modified wget command