fix "make dist" for out of source builds.