Fix getting prefs on linux