Fix code injection bug when generating Chef recipe to wrap RightScripts