refactor and parse output output for process checks

Tested with https://gist.github.com/flah00/db90d1bce9b7e2eea28a and sensu 0.12.3

* Refactor code
* Add support for process checks
  * Requires `recover?`to use regex, because process recovery includes a PID