Repository: stable-diffusion-webui
Issue: [Bug]: Can't restore backup via Extensions → Backup/Restore → Restore Selected Config
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Nothing happened during restoring backup of the extensions via Extensions → Backup/Restore → Restore Selected Config

### Steps to reproduce the problem

1. The old WebUI: Extensions → Backup/Restore → State to restore → extensions → Save Current Config
You should have 
2. Copy config from old to new location webui\config_states
3. The new WebUI: Extensions → Backup/Restore → Restore Selected Config → OК


### What should have happened?

I think all the extensions from the backup must be installed in the new environment.

### Version or Commit where the problem happens

version: v1.5.1 

### What Python version are you running on ?

Python 3.10.x

### What platforms do you use to access the UI ?

Windows

### What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

### Cross attention optimization

sdp

### What browsers do you use to access the UI ?

Microsoft Edge

### Command Line Arguments

```Shell
--opt-sdp-attention
```


### List of extensions

The new webui: list is empty because this is a clear installation

The old webui (which backup I want to restore)
https://github.com/LEv145/--sd-webui-ar-plus
https://github.com/Zyin055/Config-Presets
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
https://github.com/Bing-su/adetailer.git
https://github.com/richrobber2/canvas-zoom.git
https://github.com/pharmapsychotic/clip-interrogator-ext.git
https://github.com/ljleb/prompt-fusion-extension
https://github.com/vladmandic/sd-extension-system-info.git
https://github.com/mcmonkeyprojects/sd-infinity-grid-generator-script
https://github.com/Mikubill/sd-webui-controlnet
https://github.com/Akegarasu/sd-webui-model-converter
https://github.com/huchenlei/sd-webui-openpose-editor
https://github.com/muerrilla/stable-diffusion-NPW.git
https://github.com/toriato/stable-diffusion-webui-daam.git
https://github.com/AlUlkesh/stable-diffusion-webui-images-browser
https://github.com/AUTOMATIC1111/stable-diffusion-webui-pixelization
https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards
https://github.com/Coyote-A/ultimate-upscale-for-automatic1111
https://github.com/DingoBite/weight_gradient

### Console logs

```Shell
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a
Launching Web UI with arguments: --opt-sdp-attention
No module 'xformers'. Proceeding without it.
Loading weights [6ce0161689] from C:\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Running on local URL:  http://127.0.0.1:7861

To create a public link, set `share=True` in `launch()`.
Startup time: 8.3s (launcher: 1.9s, import torch: 2.7s, import gradio: 0.7s, setup paths: 0.6s, other imports: 0.8s, load scripts: 0.9s, create ui: 0.4s, gradio launch: 0.1s).
Creating model from config: C:\sd.webui\webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying attention optimization: sdp... done.
Model loaded in 3.1s (load weights from disk: 0.6s, create model: 0.3s, apply weights to model: 0.5s, apply half(): 0.6s, move model to device: 0.9s).
*** Restoring webui state from backup: extensions ***
Restarting UI...
Closing server running on port: 7861
*** About to restore extension state from file: C:\sd.webui\webui\config_states\2023_07_31-14_35_53_LastToday.json
* Restoring extension state...
100%|████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:00<?, ?it/s]
* Finished restoring extensions. Results:
Running on local URL:  http://127.0.0.1:7861

To create a public link, set `share=True` in `launch()`.
Startup time: 0.6s (load scripts: 0.1s, create ui: 0.2s, gradio launch: 0.2s).
```


### Additional information

I have a backup file with the list of the extensions from the old environment. Trying the restore that in the new environment did not provide any results. List the extensions still empty, nothing installed.

The old environment was regular A1111 installed via git clone which used system Phyton and git.
Tried that in two different new environments: portable via A1111 with embedded tools and regular A1111 with system tools. The result is same.