allowing fallback to $(hostname) if $(hostname --fqdn) fails to produce results