diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules
index dbb38a0345c9b6e951400cdb8e19e8d141bcca6c..8e3f05cbb065d37325a0d53108df7329e89b2593 100644
--- a/Makefile.moddir_rules
+++ b/Makefile.moddir_rules
@@ -96,7 +96,7 @@ ifneq ($(findstring :,$(XMLSTARLET)$(BASH)),:)
 		EXTERNAL_MODS=$$($(XMLSTARLET) sel -t -m "/category/member[support_level = 'external']" -v "@name" -n .moduleinfo) ;\
 		for x in $${EXTERNAL_MODS} ; do \
 			if [ -z "$${DISABLED_MODS[$${x}]}" ] ; then \
-				$(ASTTOPDIR)/build_tools/download_externals $${x} ;\
+				PJPROJECT_BUNDLED=${PJPROJECT_BUNDLED} $(ASTTOPDIR)/build_tools/download_externals $${x} ;\
 			fi ;\
 		done ;\
 	fi