Fix multiple bugs that caused the menu path not to be shown

Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=725269
Add a refine flag for setting the menu path

It shows up on the profing now, so only retrieve it when it's going to be shown.