Be sure the target directory exists.