Clean up readConfig().