Added support for autoenv if it is installed