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.