fixed #11

Use fqdn when it's available else hostname