Fix bug: was skipping some matches because of over-eager optimisation
gitignore