fix gnupg installation and command execution