fixed wrong escaping; optimized script output for chef