Fix making parent dir before copy