fix error TAG and remove unused definition
use global context variable and fetch GNUPGHOME from the NativeHelper