Fixed longstanding issue with get_cfg_idx, which prevented use of abbreviated long names.