Use different before_install scripts for different OSes

Travis doesn't evaluate Bash conditions in the scope of the entire
script, so this seems to be the only way of doing this.
Merge pull request #133 from vassilevsky/osx

Green OS X Build