fix history and settings backup failure that manifested only on Windows