Fix #432 isdirectory() need full path when checking the kind for a candidate.
Merge pull request #433 from joelmo/master

Fix #432 isdirectory() need full path when checking the kind for a candidate