fixed #1, compatible with latest homebrew