Copied change from amrclaw tick.f for dump_final to properly dump final time