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

http://www.rudder-project.org/redmine/issues/5791
\s is not standard on sed