Small tweaks to virtualenv script

A few changes to fix things I encountered while trying to migrate my dev server to virtualenv:

* Remove dependency on distribute because it interacts badly with virtualenv (and doesn't make sense to install inside virtualenv anyway) and is deprecated
* Install virtualenv via pip rather than apt to get a more recent version
* Make the virtualenv script update apt packages
* set -e