diff --git a/gitlab/before_build.sh b/gitlab/before_build.sh
index de57423210468aabc66bb5a908d0ed3742adc774..e2a1cc57b69fcd378834ceae8050a40e68a370b1 100755
--- a/gitlab/before_build.sh
+++ b/gitlab/before_build.sh
@@ -11,7 +11,7 @@ check_env WHEELS_SERVER
 # Readies the virtualenv to use for installation
 if [ ! -d ${PREFIX} ]; then
   log_info "Creating virtualenv installation at ${PREFIX}..."
-  run_cmd_ld ${BOB_PREFIX_PATH}/bin/virtualenv --system-site-packages ${PREFIX}
+  run_cmd ${BOB_PREFIX_PATH}/bin/virtualenv --system-site-packages ${PREFIX}
 else
   log_warn "Prefix directory ${PREFIX} exists, not re-installing..."
 fi
@@ -41,21 +41,21 @@ fi
 PIPOPTS="--find-links ${WHEELS_REPOSITORY} --trusted-host ${WHEELS_SERVER}"
 PIPOPTS="${PIPOPTS} --pre --use-wheel --no-index"
 if [ -e requirements.txt ]; then
-  run_cmd_ld ${use_pip} install ${PIPOPTS} --requirement requirements.txt
+  run_cmd ${use_pip} install ${PIPOPTS} --requirement requirements.txt
 else
   log_info "No requirements.txt file found, skipping 'pip install <build-deps>'..."
 fi
 
 # Install this package's test dependencies
 if [ -e test-requirements.txt ]; then
-  run_cmd_ld ${use_pip} install ${PIPOPTS} --requirement test-requirements.txt
+  run_cmd ${use_pip} install ${PIPOPTS} --requirement test-requirements.txt
 else
   log_info "No test-requirements.txt file found, skipping 'pip install <test-deps>'..."
 fi
 
 # Finally, bootstrap the installation from the new environment
 if [ -e bootstrap-buildout.py ]; then
-  run_cmd_ld ${use_python} bootstrap-buildout.py
+  run_cmd ${use_python} bootstrap-buildout.py
 else
   log_error "No bootstrap-buildout.py file found, stopping..."
   exit 1
diff --git a/gitlab/before_test.sh b/gitlab/before_test.sh
index bd8e081044918768a0bffb0c2749f10fba13f474..3709c10f2ba1b13c92d1b24b23a642033dac1a8c 100755
--- a/gitlab/before_test.sh
+++ b/gitlab/before_test.sh
@@ -20,7 +20,7 @@ fi
 
 # zc.recipe.egg needs some special installation instructions
 if [ "${CI_PROJECT_NAME}" == "bob.buildout" ]; then
-  run_cmd_ld ${use_pip} install --upgrade --no-binary ":all:" zc.recipe.egg
+  run_cmd ${use_pip} install --upgrade --no-binary ":all:" zc.recipe.egg
 fi
 
-run_cmd_ld ${use_pip} install --upgrade --use-wheel --no-index --pre dist/*.whl
+run_cmd ${use_pip} install --upgrade --use-wheel --no-index --pre dist/*.whl
diff --git a/gitlab/build.sh b/gitlab/build.sh
index f59b27d8b4607dde5892a0d7373fa58190d4a438..a31680ac432fcd386a0574380223f061646a38d4 100755
--- a/gitlab/build.sh
+++ b/gitlab/build.sh
@@ -3,20 +3,20 @@
 
 source $(dirname ${0})/functions.sh
 
-run_cmd_ld ./bin/buildout
+run_cmd ./bin/buildout
 
 if [ -x ./bin/bob_dbmanage.py ]; then
-  run_cmd_ld ./bin/bob_dbmanage.py all download --force;
+  run_cmd ./bin/bob_dbmanage.py all download --force;
 fi
 
 if [ -d ./doc ]; then
-  run_cmd_ld ./bin/sphinx-build doc sphinx
+  run_cmd ./bin/sphinx-build doc sphinx
 fi
 
 if [ -z "${WHEEL_TAG}" ]; then
   # C/C++ extensions
-  run_cmd_ld ./bin/python setup.py bdist_wheel
+  run_cmd ./bin/python setup.py bdist_wheel
 else
   # Python-only packages
-  run_cmd_ld ./bin/python setup.py bdist_wheel --python-tag ${WHEEL_TAG}
+  run_cmd ./bin/python setup.py bdist_wheel --python-tag ${WHEEL_TAG}
 fi
diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index a851eff4509358a170290b1b76e3f1668871cc75..840be0535f977f41630f8c574c32d930a51f79c5 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -71,21 +71,9 @@ run_cmd() {
 }
 
 
-# Function for running command and echoing results, with LD_LIBRARY_PATH set
-run_cmd_ld() {
-  log_info "$ ${@}"
-  LD_LIBRARY_PATH=${BOB_PREFIX_PATH}/lib ${@}
-  local status=$?
-  if [ ${status} != 0 ]; then
-    log_error "Command Failed \"${@}\""
-    exit ${status}
-  fi
-}
-
-
 # Runs setup.py
 setup() {
-  run_cmd_ld ${PREFIX}/bin/python setup.py ${@}
+  run_cmd ${PREFIX}/bin/python setup.py ${@}
 }
 
 
@@ -116,26 +104,6 @@ EOT
 }
 
 
-# Fixes the python prompt by setting LD_LIBRARY_PATH permanently
-fix_venv() {
-
-  local py=${PREFIX}/bin/python
-
-  case ${PYVER} in
-    py3*) py=${py}3 ;;
-  esac
-
-  log_info "Hot-fixing virtualenv provided by ${py}..."
-
-  mv ${py} ${py}.orig
-  cat <<EOT >> ${py}
-#!/usr/bin/env bash
-LD_LIBRARY_PATH=${BOB_PREFIX_PATH}/lib exec ${py}.orig "\${@}"
-EOT
-  run_cmd chmod 755 ${py}
-}
-
-
 # Uploads a file to our intranet location via curl
 doc_upload() {
   log_info "curl: ${1} -> ${DOCSERVER}/${2}..."
@@ -201,6 +169,7 @@ fi
 PYVER=py$(echo ${PYTHON_VERSION} | tr -d '.')
 BOB_DOCUMENTATION_SERVER="${DOCSERVER}/software/bob/docs/latest/bob/%s/master/"
 BOB_PREFIX_PATH=${CONDA_FOLDER}/envs/bob-devel-${PYVER}
+LD_LIBRARY_PATH=${BOB_PREFIX_PATH}/lib
 
 if [ -z "${PYPISERVER}" ]; then
   PYPISERVER="https://pypi.python.org/pypi"
@@ -218,5 +187,6 @@ check_env PYPISERVER
 check_env TESTSERVER
 check_env CONDA_FOLDER
 check_env CONDA_PREFIX
+export_env LD_LIBRARY_PATH
 export_env BOB_PREFIX_PATH
 export_env BOB_DOCUMENTATION_SERVER
diff --git a/gitlab/test.sh b/gitlab/test.sh
index 434de6c14df77f095535661432785a9dd65270a6..85ac251a22e2d266cfd12bc0d394d4b91c7051d3 100755
--- a/gitlab/test.sh
+++ b/gitlab/test.sh
@@ -6,8 +6,8 @@ source $(dirname ${0})/functions.sh
 run_cmd cd ${PREFIX}
 
 # The tests:
-run_cmd_ld ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/coverage run --source=${CI_PROJECT_NAME} ${BOB_PREFIX_PATH}/bin/nosetests -sv ${CI_PROJECT_NAME}
-run_cmd_ld ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/coverage report
-run_cmd_ld ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/sphinx-build -b doctest ${CI_PROJECT_DIR}/doc ${CI_PROJECT_NAME}/sphinx
+run_cmd ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/coverage run --source=${CI_PROJECT_NAME} ${BOB_PREFIX_PATH}/bin/nosetests -sv ${CI_PROJECT_NAME}
+run_cmd ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/coverage report
+run_cmd ${PREFIX}/bin/python ${BOB_PREFIX_PATH}/bin/sphinx-build -b doctest ${CI_PROJECT_DIR}/doc ${CI_PROJECT_NAME}/sphinx
 
 run_cmd cd ${CI_PROJECT_DIR}