[installer][all] fix a bug where the file would never be downloaded if there was no previous download.