creating config file directories if they do not exist