[composer] Speed up travis build using --prefer-dist