Force use of -e with built-in echo, which is not default in bash
Use printf instead of echo (thanks @bradleywright)
Set checkdoc-minor-mode in local vars without using exec