making travis setup more reliable

Taking from DGI install process