rearrange commands to improve caching
fix git error during autobuild
fix wayward git mirror management