Add sh configuration for Emacs
Add command succeeded checks