travis build, bug fixes

On Thu, Dec 18, 2014 at 10:55:54AM -0800, Ladislav Slezák wrote:
> Nitpicking: I'd prefer Ruby code instead grep, sed and tr chain. If the output
> is not huge (which is not in this case I guess) it should be more effective.

Fixed.