travis: reorder installation of dependencies