Fix loop for non-bash shells