escape envvars in regexes with \Q and \E
Merge pull request #265 from felliott/quotemeta_envvars

Escape envvars in regexes with \Q and \E (fixes test failure on OS X)