install-rvm: Fix a bug preventing installation.
Add a script to install Homebrew on OS X.