Fix install script

The install script was outdated. These commits fix install.sh for Ubuntu 12.04. I tested this in a recent install and everything passed successfully.