Be more succinct when ${TESTDIR} is undefined

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
Don't barf if MACHINE{_ARCH}/TARGET{_ARCH} are undefined

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>