Created by: ttsugriy
command -v is part of the POSIX standard and should be used instead of type. While type is also part of the standard "type -p" is not. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/type.html http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html#tag_20_22_04
While at it, use $() instead of `` for consistency.