[JFG-400]: More reliable check for agents/kernels running

This refers to patch for the same ticket in Jagger project.
"pgrep" allows to get PID of process filtering out "grep" itself.
+tiny grammar fix