my ($path) = grep { -x "$_/gpg" } split /:/, $ENV{PATH}; croak ( "Couldn't find gpg in PATH ($ENV{PATH})\n" ) unless $path;