You should probably delete this file always, we don't really want to leave files from an old build hanging. Although that could be problematic for devs wanting to test this just by manually adding the file to the dir. So probably a better solution (maybe for a followup bug) would be adding the file to the zip directly instead of polluting the work directory. That way if the dev has manually added a test file to that dir we don't delete it and if VARIANT_PATH is defined then we just overwrite it on the zip with the GAIA_DISTRIBUTION_DIR file without touching his file.