Fix issue with ruby 1.9.3p392
Support for "localhost" mapped to 127.0.0.1