Set environment in build