halo.lua: fix issue with redownloading same file