Using which to determine binary path

In some distributions, the binaries are located at /usr/bin instead of /bin, therefore I think using `which` to determine the path is more portable.