diff --git a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala
index 9382f779aa2420244c97902f80fc30cb7670a9fc..6210f8a6db35b20b9672d6f3c4012ae7438ff3f0 100644
--- a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala
+++ b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/BiopetCommandLineFunctionTrait.scala
@@ -52,9 +52,7 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
     checkExecutable
     afterGraph
 
-    super.freezeFieldValues()
-
-    if (jobOutputFile == null) jobOutputFile = new File(firstOutput.getParent + "/." + firstOutput.getName + "." + configName + ".out")
+    if (jobOutputFile == null) jobOutputFile = new File(firstOutput.getAbsoluteFile.getParent + "/." + firstOutput.getName + "." + configName + ".out")
 
     if (threads == 0) threads = getThreads(defaultThreads)
     if (threads > 1) nCoresRequest = Option(threads)
@@ -65,6 +63,8 @@ trait BiopetCommandLineFunctionTrait extends CommandLineFunction with Configurab
     }
     if (vmem.isDefined) jobResourceRequests :+= "h_vmem=" + vmem.get
     jobName = configName + ":" + (if (firstOutput != null) firstOutput.getName else jobOutputFile)
+
+    super.freezeFieldValues()
   }
 
   protected def checkExecutable {