Delete config file before renaming tmp file on Windows