...G...... [ZBXNEXT-497] introduced a separate function parse_cfg_dir() for processing directories