Fixes for test.sh: use pg_virtualenv