Removed `which` dependency, now using proper shell builtin.