Ensure apt-get update runs before package installs.

Without this, apt-get update can run after attempting to install a
package, meaning that the package install can fail.

This is lifted straight from the main puppet repo.
Merge pull request #224 from alphagov/apt_update_before_install

Ensure apt-get update runs before package installs.