Regex fix for config file scanning