Correctly source environment variables for building.