Force apt-get update when needed

Execute apt-get update if the last time was older than 1 day.