Update build script to latest version. Remove unsupported openjdk8 from travis.yml.