Support virtualenv in tests.