use brew command to detect brew prefix
add slightly better support for picking the homebrew path
fix path creation error
Merge pull request #6 from jimbojsb/gh-6

Homebrew path is hard-coded to /usr/local