After one minute considering, I think you are right, I will use `which cmd`, if got none, will use `find paths`