Added support for check_command for service templates.