Use Socket to get the hostname, don't shell out
Merge pull request #7 from github/use-socket-hostname

Use Socket to get the hostname, don't shell out