Fix tests.lib.venv to use path locations (so that it works on Windows)
Added some tests, and fixed legacy script handling