Set the application name before any standard paths are resolved
It can be set before the application itself is created.
For the sake of consistency, set the organization domain also before
the application is created.
(cherry picked from commit 1a3860323b0a0c35f0fb6246d7fd7e76444fbc33)
- GnuPG-bug-id: T7717