Improved robustness of venv DOS script.