Fixed problem with binary files.

TODO:
Fix race-condition and make sure all chunks has arrived before we
merge and delete them.