diff --git a/bin/donkey_benchmark_execution_wrapper.py b/bin/donkey_benchmark_execution_wrapper.py
index 7951b8b06bfdeb217bd3328c9b3b88f229bbc606..ef77e1a14d36f578762342ed4fbd6351062d2429 100755
--- a/bin/donkey_benchmark_execution_wrapper.py
+++ b/bin/donkey_benchmark_execution_wrapper.py
@@ -16,5 +16,5 @@ if ret != 0:
 
 # If that was succesful, wait for the output file to be available on the filesystem
 # This step is necessary because the NFS synchronization is too slow for our workflow.
-while not os.path.isfile(sys.argv[2]):
+while not os.path.isfile(sys.argv[-1]):
     time.sleep(0.1)