More efficient detection of first line.
Re-added .travis.yml after name change.