Add bash flags

Exit on error, halt on undefined variable, and leave a trace.