I can't think of any means of making that distinction either. We
simply scan both the install dir *and* in addition src/backends/*/.libs,
all the time. The latter should take precedence.
This has bad limitations: If the
user happened to run syncevolution in a directory with
the same hierarchy, unexpected libraries will be loaded by syncevolution (We will
not have limitation on the name of the backend libraries).