Fix typo in .conf files. Add some error checking