If I use gpgsm from the 2.0 series (up to 2.0.29) with option --homedir,
gpg-agent (started automatically) does not use that home directory and fails to
find private keys.
This does not happen in the 2.1 series.
As a workaround, exporting GNUPGHOME to the same homedir works.