Fixed error recovery in activate_venv()