[SF#887]Use list returned by g_get_system_{config,data}_dirs() in right order.

The first value in such list is more relevant so next one should not overwrite it.
That was incorrectly handled in config loader and thumbnailers loader. Fixing it.