diff --git a/gitlab/before_build.sh b/gitlab/before_build.sh
index a350c37111f1ebfbdb831f1780f0f3fc392c06b6..de57423210468aabc66bb5a908d0ed3742adc774 100755
--- a/gitlab/before_build.sh
+++ b/gitlab/before_build.sh
@@ -60,6 +60,3 @@ else
   log_error "No bootstrap-buildout.py file found, stopping..."
   exit 1
 fi
-
-# Corrects the virtualenv to take LD_LIBRARY_PATH into account
-fix_venv
diff --git a/gitlab/build.sh b/gitlab/build.sh
index a31680ac432fcd386a0574380223f061646a38d4..1ba1e5aba3f80994af1d01688eb9fc156825e061 100755
--- a/gitlab/build.sh
+++ b/gitlab/build.sh
@@ -3,7 +3,10 @@
 
 source $(dirname ${0})/functions.sh
 
-run_cmd ./bin/buildout
+run_cmd_ld ./bin/buildout
+
+# Corrects the virtualenv to take LD_LIBRARY_PATH into account
+fix_venv
 
 if [ -x ./bin/bob_dbmanage.py ]; then
   run_cmd ./bin/bob_dbmanage.py all download --force;