I am unable to use these scripts on NixOS, since the bash interpreter is
in a different location to more conventional distros. Currently is is
/nix/store/jlg2n512jxnr1lxs72r1frxqdsf7jpdj-system-path/bin/bash on my
machine.
This patch uses env to find the correct path to the interpreter.