helper method for testing existence of commands
Merge pull request #326 from koenpunt/has-command-helper

helper method for testing existence of commands