Converted plugins/darwin/hostname to Mixlib::ShellOut.