fix bug when config file is loaded under an embedded web container