Fix replacing of a directory with a file/symlink in git-checkout-cache