Fixes #4607: Fix check-rudder-agent conditions on UUID creation

Ticket: http://www.rudder-project.org/redmine/issues/4607

To be merged in 2.6