Adds support for "localhost" hostname