Fixed broken newlines in replace_config_line()