Fixes #5791: Implementation of a command line for rudder agent

http://www.rudder-project.org/redmine/issues/5791
I actually meant to change the regex in both places - also in the grep :)