Simplify config dir functions.