make dist-hook work also with srcdir != builddir