Fixed bugs in gpgappender util