Compare generated and expected files ignoring line endings

The tests which generate an index and compare against expected
were failing on windows, due to differences in line-ending.
Now we ignore line endings when comparing them.