Improve patch task and treatment of shell meta-characters.

I've made some enhancements to help end users and recipe writers.

See the entries in History.txt for details.


This PR is a by-product of my investigation and attempt to fix sparklemotion/nokogiri#1175.