Improvement on error messages given to the user

Give the user friendlier error messages related to configuration file specified.