running apt-get update before we install curl, otherwise it can fail if the apt url was incorrect
Merge pull request #648 from shatterednirvana/update-before-install

running apt-get update before we install curl