Read config from file