Fix preferences file path in preferences window

Closes #2809. Bug was introduced during the separation of `Preferences` and `PreferencesFrame` in 222a56a