check that a command is available
