travis: use install instead of before_script

Also simplifying the file.