Added support for virtualenv.