test/*/Makefile: Do not assume that $(ROOT) is a relative path.

This allows us (LDC) to use the Makefiles in out-of-source builds.
Merge pull request #858 from klickverbot/test-out-of-source

test/*/Makefile: Do not assume that $(ROOT) is a relative path.