Fix for issue 5739.

The copy module does not delete directories it will only unlinks symlinks. Thus we do not need to add additional tmp directories.