fixed linefeed bug when source has line endings from different OS