Made travis build file more defensive