Fixed RT#28894 - no hostname --fqdn on OSX

skip the method on darwin.