Change reference to localhost to use 127.0.0.1

* This may fix the build on travis