diff --git a/gitlab/before_test.sh b/gitlab/before_test.sh
index 93033b2e5c4bf5bb7eca4aa8c1f799b88d3fb7d6..26cd4f692dbd9a09671075409d541100cbca2779 100755
--- a/gitlab/before_test.sh
+++ b/gitlab/before_test.sh
@@ -26,6 +26,6 @@ fi
 run_cmd ${use_pip} install --upgrade --use-wheel --no-index --pre dist/*.whl
 
 # Downloads databases that may be missing (not shipped with python pkg)
-if [ -x ./bin/bob_dbmanage.py ]; then
-  run_cmd ./bin/bob_dbmanage.py all download --missing;
+if [ -x ${PREFIX}/bin/bob_dbmanage.py ]; then
+  run_cmd ${PREFIX}/bin/bob_dbmanage.py all download --missing;
 fi