diff --git a/conda/conda-build.sh b/conda/conda-build.sh
index d08420da99af639324bfe3c34efeacf2b51e123e..9dcc1332506fbf0a8fae7e10613d45a2d7f2b7e4 100755
--- a/conda/conda-build.sh
+++ b/conda/conda-build.sh
@@ -82,8 +82,8 @@ log_info "Using CONDARC from \`${CONDARC}'..."
 BUILD_OPTIONS="--no-anaconda-upload --skip-existing --variant-config-files ${DIR}/../gitlab/conda_build_config.yaml"
 
 # Exclusively for Bob packages, we also set the package version
-if [ -e ${1}/../version.txt ]; then
-  export BOB_PACKAGE_VERSION=$(cat ${1}/../version.txt)
+if [ -e version.txt ]; then
+  export BOB_PACKAGE_VERSION=$(cat version.txt)
   echo "Setting package version to \`${BOB_PACKAGE_VERSION}'..."
 fi