Improve .gitignore parsing
Merge pull request #698 from MarcelGerber/gitignore-parsing

Improve .gitignore parsing
Changelog...