Thanks, I didn't know about `winepath` command. I used sh + sed + xargs as a workaround, but this is much better now