Changed all tests 'context' task to better handle lines.

I made this change because new lines are different between operating systems. I've copied this task to a project of my own and encountered this problem, so now I discard the differences between new lines.

Changing to IO.readLines fixed my problem, maybe it can help others as well.