Fixed get_config_val() to pass back appropriate char *