Fix to check version of files correctly on upgrade.

Signed-off-by: ziycon <ziycon.eire@gmail.com>

Change to allow file versions to be checked correctly on upgrade.