Be more forgiving when looking up recent files
g_get_prgname() is less constant then we'd want it to be, so make sure we still catch all names we used historically.
Partial fix for side-effects caused by aedb440f
See #539 (closed) for details
(cherry picked from commit 31dae0dc)