change util.CopyDirectory to archive.CopyWithTar

Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh)
Merge pull request #8906 from dqminh/remove-copy-directory

change util.CopyDirectory to archive.CopyWithTar