fix a bug in utility routine to find gpg keyid correctly
add a test case to check deploy w/ gpgkey in myrepo.commands.tests.genconf