Write environment updates to profile.