chore(build): bugfixes to build scripts on Jenkins.
docs(tutorial): do not recommend global install of Karma

Closes #5498
Merge branch 'master' of https://github.com/angular/angular.js