Increase portability by using /usr/bin/env in shebang
To use the right bash in the scripts, use
#!/usr/bin/env bash -e
instead of
#!/bin/bash -e
Currently the setup routine on OSX fails, because OSX has bash3.2 installed by default and brew install bash
installs bash4.4 in /usr/local/bin/bash
.