Your comments

Yes, I absolutely agree with this. There seems to be too much weight given to the folder name; ideally I'd like an option to not match on folder name at all.

I guess it's large Java projects that mainly experience this issue - the example given is Liferay, but I'm finding the same problem with the Alfresco source code.