Update travis script to work for succes

If result from the grep is empty the command exits with 1,
if trying to assign the result to a variable.