test: Fix dumping logs

The call to `dumpLogs` needs to run before removing the generated flynnrc