replaced WIN32 file i/o in config_load()