Use pathlib replace() for saving config

This makes it hopefully more resilient on Windows
3 jobs for master in 0 seconds (queued for 115 minutes and 4 seconds)
latest
Status Job ID Name Coverage
  Test
failed #9873
run-appdata

failed #9872
run-tests

 
  Build
skipped #9874
run-build
 
Name Stage Failure
failed
run-appdata Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job trace
failed
run-tests Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job trace