dock:: fix guess_desktop_id.

the desktop basename should change underline to hyphen, and then comparing to
appid.

Change-Id: I131944ac1bfb6811855739b643b9cbf26e3eb41d