move refresh apt-get conditionally within install process