fixes for custom config.host_url / config.base / config.base_api

Signed-off-by: Arnaud Richard <a.richard@webshell.io>