Do not use which anymore.

`which` is an issue even on some Linux distributions, for example NixOS.
See this thread:
http://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script