Fixed an issue with libraries that have a base name shared with another lib