change `$_gpg_env` to default & replace running check