Fix regex issue with template paths on Windows machines.

Removed single quotes from around the regex as they were causing it to be interpreted as a string instead of as a regex. On Windows, this causes template paths (components specifically) to be named with the Windows path separator (\) instead of the forward slash.