Updates to follow some Homebrew best practices

Hi,

Here are some changes to migrate to more current features of Homebrew and adhere to best practices.

I will leave some comments in the diff.

Thanks!
This method is returning nil rather than the array; I wasn't sure if it was intentional.