Changed the check point of the file handle.

For when the test script has fork, state of autoflash is reset.