Update update.php

$nextFile was unknown variable on line 106

Same error on twice branch