Refactored chef execute scripts