fix early exit in install.sh
use bash-y 'type' instead of 'whereis'

http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script