[config] fix bug in config parser (failed parsing names followed by a comma)