More robust travis file parser although not perfect yet.