Fix read_config_value to read the value of given name.
Remove debug redirection.