remove empty lines from result set

shorter filter as suggested by @Pomax
Merge pull request #44 from graphicore/io-improvements

remove empty lines from result set