Ubuntu retain the HOME variable when executing command for other user, it prevents Puppet from identifying the right GPG key ring location, this fix update the HOME variable before executing the gpg command