Be defensive when enabling autoenv.