move 'patch' to another subprocess

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