Fix bad regex for submodule from #118

The regex in bash and zsh doesn't need to be quoted. It resulted a
bad regex warning in zsh (#127) and it didn't worked in submodule.
Plus, bash and zsh regexes have perlish syntax.
Merge pull request #128 from ldidry/badregex

Fix bad regex for submodule from #118