Fixes the writeBinaryFile sending an empty file contents when only the first argument is passed.
writeBinaryFile