Fixed copyDirRecursive for overwrites