diff --git a/testsuite/tests/perf/compiler/genT13701 b/testsuite/tests/perf/compiler/genT13701
index f2b7c4eab206f76c3e8841a81bc7f6773409af8c..7401cdd27e69d22ed8d253fe179f956f7ee2f98d 100755
--- a/testsuite/tests/perf/compiler/genT13701
+++ b/testsuite/tests/perf/compiler/genT13701
@@ -1,4 +1,5 @@
-#!/bin/bash
+#!/usr/bin/env bash
+
 # Generate $DEPTH layers of modules with $WIDTH modules on each layer
 # Every module on layer N imports all the modules on layer N-1
 # MultiLayerModules.hs imports all the modules from the last layer
diff --git a/testsuite/tests/perf/compiler/genT13719 b/testsuite/tests/perf/compiler/genT13719
index ccc078efd77a76db37688d5265f94dd81a7a3ca6..886fdd12c74bd20a50e1955a1ad458a4d903cfb4 100755
--- a/testsuite/tests/perf/compiler/genT13719
+++ b/testsuite/tests/perf/compiler/genT13719
@@ -1,4 +1,5 @@
-#!/bin/bash
+#!/usr/bin/env bash
+
 # Generate $DEPTH layers of modules with $WIDTH modules on each layer
 # Every module on layer N imports all the modules on layer N-1
 # $ROOT.hs imports all the modules from the last layer