Escape full path when patching

This ensures that patching is successful even if the ROOT path contains spaces.
This is the same approach that mini_portile takes. https://github.com/luislavena/mini_portile/blob/v0.6.1/lib/mini_portile.rb#L256