Add a / to the beginning of a file matchin pattern if no / in rule.

See https://www.kernel.org/pub/software/scm/git/docs/gitignore.html
Merge pull request #1754 from njam/issue-1754

Fix file pattern start matching if no slash