Use which to detect OS type
Use comand -v instead of which
Use command -v only for brew
Merge pull request #21 from 10sr/which

Use which to detect OS type