[NODEJS-1767] Make type dectection way better

Update .travis.yml