Delete cfgFile before renaming it on Windows