Add syntax checking for conf file.