Added successful download check

Now script doesn't shit files everywhere if any package wasn't downloaded successfully
Update build.sh

syntax hotfix
Merge pull request #1 from utrack/master

Download checks