Fixes #5824: Make rudder-agent more generic

http://www.rudder-project.org/redmine/issues/5824