fix bootstrap download method to not bork environment variables