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

Closes #5498