Added line_separator option to write_command