Remove old cert target
Simplify config dir functions.