Log replace operation error
Use remove() function instead of unlink()

Just saw that unlink() is from POSIX standard.  I used to think
it's from C standard.
Fix vifminfo file update on Windows

Wasn't updated at all, because on Windows rename() function
doesn't overwrite existing destination file.
Merge branch 'fix-win-fileinfo-replace'