COOK-2720 - Apache2 minitest helper function ran_recipe is not portable ...

...fixed

Re-used code originally written by bryanwb for the Chef-Minitest-handler cookbook. 

That code's license: Apache 2.0
Origin: https://github.com/btm/minitest-handler-cookbook/blob/master/recipes/default.rb line 18.