Update scripts to fix Travis CI build.