diff --git a/build.sh b/build.sh
index 1196cb3813529271df508e4fc6e5e5ae1b3cdb65..b85e254c15d1d4672c366e12cbc85928793e2e7c 100755
--- a/build.sh
+++ b/build.sh
@@ -204,6 +204,8 @@ then
     exit 1
 fi
 
+shopt -s nullglob # if nothing matches a glob, expand to nothing
+
 initialize_build # provided by master buildscripts build.sh
 
 begin_section "autobuild initialize"