Updating path of file