HADOOP-10926. Improve smart-apply-patch.sh to apply binary diffs (cmccabe)