Fix bug in copy-directory copying into an existing directory.