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