fix line endings on windows

This fixed issue #30 for me. I'm not able to test on unix easily, however I assume it will work