make sure the directory exist.