[#3614837]Check file name before id when launch GDesktopAppInfo.

New GLib (Ubuntu saucy uses it) returns desktop id for any file, it
just returns basename. Therefore checking id to find out if it is an
application, has no sence. Only portable way is to check filename
first and if it does not work then check application id.