Added -e option to set so that scripts exit at the first command that fails