Use --quick-set-primary-uid
If we depend on gpg >= 2.1.20 we could use gpg --quick-set-primary-uid
and get rid of the expect-style script.
If we depend on gpg >= 2.1.20 we could use gpg --quick-set-primary-uid
and get rid of the expect-style script.