diff --git a/cicd_testing/do-build.sh b/cicd_testing/do-build.sh
index 9587c6fe62293fd52097086026a568ac78c6fff9..b7edd25150e66354da814b9343f9845f364ff3a0 100755
--- a/cicd_testing/do-build.sh
+++ b/cicd_testing/do-build.sh
@@ -13,13 +13,14 @@ whoami
 env|grep CICD
 
 time rsync -a --exclude='.git'  $CICD_TO_TEST_DIR/ /tmp/peasoup_test
-cd /tmp/peasoup_test
-source set_env_vars
 cicd_setup_module_dependency allzp/idapro71.git idapro71
 export IDAROOT=$CICD_MODULE_WORK_DIR/idapro71
 cicd_setup_module_dependency allzp/idapro71_sdk.git idapro71_sdk
 export IDASDK=$CICD_MODULE_WORK_DIR/idapro71_sdk
 
+cd /tmp/peasoup_test
+source set_env_vars
+
 sudo ./get-peasoup-packages.sh all
 bash -x ./build-all.sh 
 bash -x ./postgres_setup.sh