Fix to lint code written on another platform

ci was breaking on functional tests because it was splitting lines on
environment.newline which differed from the actual new lines in the
source file (written on my machine)