modified command 'list-duplicates' to output the paths where the packages were found (fix #3)

@tfoote @wjwwood Please review.

While the CLI command has been modified to also output the paths of the duplicate packages the existing C++ API has not been modified but a new function has been introduced.