Use venv only if needed

Change-Id: I646ba40be7cd0820a08eca6a2683d3959e2d3aae