Compile glob patterns to regular expressions. detectSyntax speed up