just get hostname into canonical_hostname

Signed-off-by: Andy Green <andy.green@linaro.org>