Make ** pattern eat trailing slash

This allows "foo/**/*.html" to match "foo/file.html"
Merge pull request #2320 from libgit2/rb/fix-starstar-again

Make ** pattern eat trailing slash