Fix which
not to return directories
#392
Merged
which
not to return directories
#392