using `rx' macro more
moved sh-mode configuration to right place
even more usage of `rx' macro