Correct issue whereby copy files will flatten a directory structure.