Added successful download check

Now script doesn't shit files everywhere if any package wasn't downloaded successfully