Fix opening files in binary mode on Windows, again

The .tar.gz file generated by 'yotta publish' was invalid because
it was opened as text in Windows.
Merge pull request #119 from bogdanm/fix-win-tars-again

Fix opening files in binary mode on Windows, again