Travis build script: specify which version of OCaml to install

An attempt at a fix for #2749: retrieve the full OCaml version name from `apt-cache` and pass it to `apt-get`.