I rewrote reposdir and added find_conf_value for now to make this a little cleaner.  Are you ok with this @adrienthebo ?