Fix hang in "cp -e"