add assert of tail-targetfile is exist or not.