Improve heka check

This patch adds a check on process, not only on arguments and it also
avoids to add data in grains when it is not needed.

Change-Id: If1da2e601a47ac63f8b2645b2857b4072a43013f
1 file changed