Fix pattern matching in most configuration file