Make shebang line path agnostic

This is needed to run the script on systems where `bash` is not at `/bin/bash`, such as FreeBSD.