Try fix issue #30, handle case of missing EOL