Fix support for virtualenv.