Adding directory creation if not exists in the config collection class save method.