Create command_exists

Stole the idea from https://github.com/cmer/shoestrap/blob/master/helpers/default.
Stole the implementation from http://www.cyberciti.biz/faq/unix-linux-shell-find-out-posixcommand-exists-or-not/.