Fix config file updates with invalid regex (#2)