Move test-wrapper logic to util.sh

This paves the way for badvarnish.sh and other setups
Makefile: Don't try to change ownership...

Sigh... Breaks make distcheck
tests: Use ORIGPWD to fix make distcheck
tests: Run badvarnishd.sh as the rest

Fixes #51