Ensure config directories exists before creating them