This fix hides the grep process from the first grep - which now notifies you if your process is not running.

I'm not sure how cross platform it is - but it appears to work on Ubuntu linux.

There's a few other options to do this - lots of info here:

http://serverfault.com/questions/367921/how-to-prevent-ps-reporting-its-own-process

This was the simplest and works properly in my test case.