Simpler configuration file load.

And IOError check