Travis build script: specify which version of OCaml to install

Retrieve the full OCaml version name from `apt-cache` and pass it to `apt-get`.  Fixes #2749.