Added helper for patching rake tasks

Put solution from #185 in a PR