Clean up hostname output. Add workgroup for non-domain hosts.