only quotes for regex in files, diretcories and locations
removed usage of intermediate template variable