diff --git a/biopet/biopet.wdl b/biopet/biopet.wdl
index 3c7ac7b5aa56323a75089236fefe31fad791a9d4..86ca3800c693701d7e3e0d3f11f05af8cd8046a3 100644
--- a/biopet/biopet.wdl
+++ b/biopet/biopet.wdl
@@ -248,9 +248,13 @@ task ScatterRegions {
         Int memory = 4
         Float memoryMultiplier = 3.0
         String dockerTag = "0.2--0"
-        String outputDirPath = "scatters"
     }
 
+    # OutDirPath must be defined here because the glob process relies on
+    # linking. This path must be in the containers filesystem, otherwise the
+    # linking does not work.
+    String outputDirPath = "scatters"
+
     command {
         set -e -o pipefail
         mkdir -p ~{outputDirPath}