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!
To remain compatible with OS X older than 10.9, we have to stick to Ruby 1.8 compatible syntax here, which only allows a splat as the last argument.