command-exists

check whether a command line command exists in the current environment