CopyDirectory fix.