which should only find files, not directories
Merge pull request #110 from panrafal/fix/which

which() should only find files, not directories