Fixed failure if the destination dir exists for copyDirSync()