Filtering bugfix

Hey! 

I have some with 'domain.cpp' in the name that were mistaken for 'main.cpp' and not included in the static library. I added a regex-based search to make it more specific to try to avoid this.