Fixed file duplicating on renaming, the target will be *deleted* if
exists.