Quote paths passed to patch. Fixes #14536.

Change has been tested only on a Windows minion.