Fixed regression in file writing

Flags got moved from a to a+ but it's unsupported by ZipFile.
Changed the name of the write_backend variable but forgot to change it
in the OSRF writer.

Change-Id: I6ddf14c07e84af0a5e5b0994d72a8bfc506adce0