This fixes #8068.  It now returns the config path when get('confdir') is given.