move 'patch' to another subprocess

- make compatible with windows
- add quotes in path in case path has space in between