Better configuration file I/O