Update flow.lua

part1/3 of a fix for job change file_unload issue