systemlist: add `keepempty` option to preserve final newline
systemlist: test empty lines in beginning and middle of output
Merge pull request #1567 from bfredl/systemlist

systemlist: add `keepempty` option to preserve final newline