CHEF-2286: Fixed spec failure for ruby 1.8.7
CHEF-2286: Fixed ENV variable treatment to preserve original and back it after spec finished