Fix bug parsing config files without a trailing newline.
Merge pull request #5 from jeady/master

fix bug parsing config files without a trailing newline