removed `sudo` before brew and gem commands

The brew install script and brew itself refuse to run as sudo. (Brew will only run as sudo if owned by root.)