change localhost to 127.0.0.1 to work around proxy madness

When used behind a proxy localhost is not matching 127.0.0.1 for some
reason, it was easier to fix here then change proxy settings.