fix auto-mode regular expressions
Merge pull request #112 from thomasf/auto-mode-regexp

fix auto-mode regular expressions