Patch helper util method

patch util method to apply patches
here is example https://github.com/piavlo/fpm-recipes-piavlo/blob/master/nrpe/recipe.rb#L19