Change npm to $(which npm) in .travis.yml