core: switch linefeed to file aware from system one