Quote paths passed to patch. Fixes #14536.