pisi: Workaround for the case where old dir /a/b/c is replaced by file c in /a/b dir.