Changed external IP lookup to use dig

Sometimes the curl command I was using would hang, and with multiple tmux
sessions active the CPU usage would spike. Hopefully dig will be less
intensive.