Updated to make sure all env vars needed by pinentry and GnuPG are set correctly