Fix path and config reading method for host/port.

Limit and other settings were getting ignored since the host
configuration value wasn't getting read.