Bug fix: if a rake task failed, the output file would get written as 0 bytes anyway, so rerunning rake did nothing.