t/Makefile: fix result handling with TEST_OUTPUT_DIRECTORY