PathScope stores its roots canonicalised (\\?\ on Windows, /private/var on macOS), so the default-folders test now canonicalises scratch_dir() before looking it up, like the recovery folder on the line above. The same fix came in from @Karl-VonRichter in #969, found on macOS. Co-authored-by: Karl-VonRichter <20079846+Karl-VonRichter@users.noreply.github.com>