expand config dir path for better error msgs