Fix for loop to work with sh