Change monit::checkprocessmatch and monit::checkpid to use separate templates for backwards-compatibility