fixed issues with npm scripts for travis-ci