Change file mode to append