index: fix index merging on windows

Rename fails on Windows if destination exists.

The following sequence will now correctly work:

  $ cindex a
  $ cindex b

instead of silently failing to update the index with b content.
Merge pull request #2 from pmezard/fix-cindex-windows

cindex: fix index merging on windows