diff --git a/Makefile.am b/Makefile.am
index 6b1a58ed5e4993b5a3edcc24b0ca0bb3edc8c76e..0b82fb7bd36279a087e4b0cfb9bedbda8478b1f0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,5 +3,6 @@ SUBDIRS = BLAS IAMTOOLS SOLVER PLOT_ANSI ALBERT
 EXTRA_DIST = DEMO
 
 dist-hook:
-	cd $(distdir)/DEMO
-	rm -rf CVS src/CVS src/1d/CVS src/2d/CVS src/3d/CVS src/Common/CVS
\ No newline at end of file
+	echo "Deleting CVS directories in built package..."
+	(cd $(distdir)/DEMO && rm -rf CVS src/CVS src/1d/CVS src/2d/CVS src/3d/CVS src/Common/CVS)
+	(cd $(distdir)/ALBERT/src/Common && rm -rf CVS)
\ No newline at end of file