fix syscall.Utsname is OS dependent #4

in Macos env, the agent will go wrong,
so i update the code from shirou's suggestion.
testing pass in local environment.