Use new Homebrew JSON querying API.

In reference to https://github.com/ansible/ansible/issues/7453

For more information, see: https://github.com/Homebrew/homebrew/wiki/Querying-Brew