Fixes #3999 - Fix broken UUID repair process of check-rudder-agent

Fixes #3999 - Fix broken UUID repair process of check-rudder-agent

See http://www.rudder-project.org/redmine/issues/3999