[enh] os independent new line support

Tests not passing (path.py)