Simplify same base project finding

Use string matching instead of regular expressions to avoid problems with
regular expression characters.

Fixes #24