Now caching the result of hostIsLocalMachine() and using getHostName() instead of getCanonicalHostName() to see if we can make things not unbearably slow on some systems