Use GFileInfo instead of stat() in prefs.c

https://bugzilla.gnome.org/show_bug.cgi?id=724608