Fixes the newline at end issue

See comment at original post
http://www.alfredforum.com/topic/2563-search-animated-gifs-workflow/#entry14903
for an explanation of the changes
Merge pull request #1 from vitorgalvao/fix-newline-at-end

Fixes the newline at end issue