Ubuntu 12.04 bash requires a space between ! and $(which apt-get)
When $(uname -s) = Darwin, we need setup.osx not setup.apt.