Add conditional test before virtualenv setup.