executing only first matching action ( issue #3 )
fixed typo and pgrep used

- using the more appropriate pgrep, also because grep was grepping itself in ps output.
- fixing stupid mislocation of end of loop
Merge pull request #4 from CirKu17/master

executing only first matching action ( issue #3 )