diff --git a/options/env.sh b/options/env.sh
index 542ee7dec4fe387a7e13069e16ecb53972e95fa7..f696b394be94940c807e5fe4c104117d7d08d6ae 100755
--- a/options/env.sh
+++ b/options/env.sh
@@ -34,6 +34,11 @@ if [ ! -n  "${JUGGLER_DETECTOR}" ] ; then
 fi
 echo "JUGGLER_DETECTOR:       ${JUGGLER_DETECTOR}"
 
+if [ ! -n  "${JUGGLER_DETECTOR_VERSION}" ] ; then 
+  export JUGGLER_DETECTOR_VERSION="v0.0.1"
+fi
+echo "JUGGLER_DETECTOR_VERSION:       ${JUGGLER_DETECTOR_VERSION}"
+
 ## Number of events that will be processed by the reconstruction
 if [ ! -n  "${JUGGLER_N_EVENTS}" ] ; then 
   export JUGGLER_N_EVENTS=100
diff --git a/util/build_detector.sh b/util/build_detector.sh
index 02313585d56e0ca28af161bc19a7f7b3ae5f53c7..bccf765b24b79d9aa00d5075a1c20f321abfb1fd 100755
--- a/util/build_detector.sh
+++ b/util/build_detector.sh
@@ -29,7 +29,7 @@ pushd ${DETECTOR_PREFIX}
 ## We need an up-to-date copy of the detector
 if [ ! -d ${JUGGLER_DETECTOR} ]; then
   echo "Fetching ${JUGGLER_DETECTOR}"
-  git clone https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
+  git clone -b ${JUGGLER_DETECTOR_VERSION} https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
 else
   echo "Updating ${JUGGLER_DETECTOR}"
   pushd ${JUGGLER_DETECTOR}