fix test; make test scripts PWD-independent