use which to locate external tools to work on CentOS

On CentOS these tools are located in a different location.