utils: append_file: open destination in append-mode (boo#907528)