Fixes compilation download logic - which was flaky before.