fix hostname detection if host command is not available
[solaris] skip procs running in a zone when checking a global zone