Make matching a little more robust and also make removeProject only
match on project path. Not on source files within it.