Do not ignore last line if no blank line at end
Handle repeated user-agents correctly
Merge pull request #8 from jlicht/master

Handling of repeated user-agent and files without trailing carriage return