improves duplicate detection

Instead of searching for a suffix of the repo NSString, I look to see
if a substring exists.
Fixes #37