Change a file name and update accordingly.