Travis: fix install detection.

The previous fix in 301d8f1a9d6d024faf1834585a01bdfea20efa91 didn't
take into account that allpkgs is space separated and not on multiple
lines, so grepping the start of a word wont work.
Merge pull request #1552 from mirage/master

Fix Travis