Handle single-level gitignore patterns

Git ignore patterns with "/"-prefix, should only
match on the level of the defining .gitignore.

Use depth in ignore definition and match.