fixed issue with checking for regex present in config file