Attempt to find the hostname via perl.

This should resolve the problem of `hostname --fqdn`
failing on OpenBSD as reported by Simon Baker.
Report on changes..