Merge pull request #1367 from yorah/fix/pathspecs_behaviour Correctly return matched pathspec when passing "*" or "."