Fix for variable scope in chef handler

Oops is all I can say