Changed Windows image build to check environment variables before doing download
Added code to check for missing dependencies before doing Windows image build