Improve test for whether a pattern represents a directory.
Improve test for whether a pattern represents a directory.

Before this change the code assumed the pattern was a single path
segment so it would give false positives when the pattern contained
more than one segment, e.g. "foo/bar.txt".

See #85.

airblade/vim-rooter