Make machine detection more platform dependent.

Vim has a hostname() function.  User that instead of `uname -n`.