Changed shebang lines in all the scripts to #!/usr/bin/env bash so it would work on FreeBSD as well.