addLocalTarball: Replace 'once' function