ensure "make check" works for out of source builds