Nicer error messages when files are not properly set.