Fix 'apt-get autoremove' being too agressive in Travis CI scripts

This should fix the issue seen in https://github.com/ocaml/opam-repository/pull/1601
Merge pull request #1604 from samoht/master

Fix 'apt-get autoremove' being too agressive in Travis CI scripts