Finding right localhost address on Linux (fixes #482)