Curl should be writing from the start and not appending to a file