Makefile.am: add dependencies from the test runner scripts to their corresponding check programs

this seems to be needed with older autotools, particularly the version
used by travis-ci.