The previous PR had a bug where the REGEX for grep was not properly escaped. This PR fixes that issue.