[Fix #370] added ensureLineEndings workaround

Signed-off-by: oleg komarov <o.komarov11@imperial.ac.uk>
Merge remote-tracking branch 'okomarov/epsFix'