Recursive copy utility.