Move path transformation out of plugins
Use os.EOL for testing