retry on apt-get commands since they time out sometimes from aws