added generic command check
improved description
Merge pull request #5 from hubspotdevops/upstream_check_cmd

Cherry pick plugin check-cmd.rb from upstream