add --homedir option to gpg, preventing to fail to generate when the user has no home directory.
update configure with gpg executable