This is due to the fact that in 'make distcheck' the srcdir is not the same as the builddir which causes problems when trying to reference files.