Check the file ending. Fixes #11.