Fix Dropbox file write