Move gpg code into install script