fix the find command line
diff --git a/Makefile.am b/Makefile.am
index a78647d..ca60e90 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,7 +46,7 @@
 dist-hook:
 	rm -rf $(top_builddir)/tests/log
 	find $(distdir) -name "*.dist" -exec rm {} \;
-	(distit=`find $(srcdir) -name "*.dist | grep -v ./ares/"`; \
+	(distit=`find $(srcdir) -name "*.dist" | grep -v ./ares/`; \
 	for file in $$distit; do \
 	  strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
 	  cp $$file $(distdir)$$strip; \