When errors are reported, print shopt/set -o output for better reports