genconfig: Backup old config file

* Backup previous config file before overwriting.