strip envs during building