The "proper" way to do this is to use "command -v #{command}" which returns zero if the "command" exists, and one if it doesn't. You can learn more about it at [this stackoverflow question](http://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script).