Remove end-of-line space when listing packages.

An space is added at the end of each line when filtering packages in order to make it easy to search for whole words
when selecting flags. This is removed when using the packages command.