Fix the ugly npm install errors.

Only install the automation-tests deps if AUTOMATION_TESTS=true is defined on the command line.

fixes #3160
Merge pull request #3207 from mozilla/issue_3160_npm_install

Fix the ugly npm install errors.