Fixes #5812: Do not fail in rudder-init when hostname -f returns an erro...

...r

Ticket: https://www.rudder-project.org/redmine/issues/5812

To be merged in 2.11