Fix shell mode to work sanely with case statements.
Add setup for makefiles.