Remove old extension dir when upgrading (#9800)

Fixes #9799

Release Notes:

- Fixed a bug where upgrading an extension did not work correctly if the
extension had switched from using an old extension schema with
`extension.json` to the new schema with `extension.toml`.
5e7fcc02faMax Brunsfeld committed on 3/26/2024, 4:27:30 AM· committed by GitHubparent5adc51f
1 file changedLine totals unavailable