mate-session-manager: a couple of fixes