Added more general loop in dsh rake command