Added fix for stale apt-cache

Since chef_gem and the package installs are running at compile time, they will fire off before the 'apt' cookbook, leaving no clean way to make sure the apt-cache is up to date. To fix issues with the stale apt-cache on our Ubuntu public cloud servers causing failures I added a check for a 24+ hour old apt-cache and an 'apt-get update' on ubuntu servers.