Added "set -e" to shell scripts