Adapt to Automake test-driver changes

Distribute test-driver script and do not use cd in TESTS_ENVIRONMENT.