Is the IDE being used to build? It uses the sketchbook copy first, some alternates do not AFAIK.

Also when Verbose build details are shown - at least from IDE - it points out which library was...