This change makes sure the dependancies are only resolved once(since we are downloading and extracting zips) So I also moved the cleanup step to the end