Fixed regex matching.

Regex previously wouldn't affect env vars added.