XML-based Packages do not activate shortcuts
When using XML-based packages like stunnel or iperf, shortcuts are not activated as the package does not have a way to set the shortcut section. There are packages such as stunnel which define shortcuts but they are never presented to the user.
1. Try to automatically determine the shortcut section based on the xml file being accessed
2. Allow a package to set a custom shortcut section if it wants to
Setup shortcuts for packages. Fixes #9770
(cherry picked from commit 37213abe96e83884b4a8ffbbbb7cc759cd2799ec)