From http://stackoverflow.com/questions/6782658/how-to-get-default-gateway-in-mac-osx