Fixes ConfigDrive bug on Windows

Files must be written specifying "wb" instead of "w"
to support binary files on both Windows and Linux.

Change-Id: I069845136df4a11b54c931a71575ca3efb9bc6d0
Closes-Bug: #1261585
Merge "Fixes ConfigDrive bug on Windows"