Fix generate.sh for Travis