winpty-git: fixed a path conversion issue and cleaned up patches