Fixes issue when a port number is appended to the hostname, expected: pick the hostname'd config file (without port number)