Rewrite condition in its canonical, easier to debug form
Fix broken behaviour upon trailing blank in list file

Includes test case for that issue.
Remove obsolete condition and explain why it's obsolete

Needs updates of line numbers in some error handling testing tests.