Read setting of pinentry-program in gpg-agent.conf

also fixes the check if the tomb is already open