Fix syntax for bash-style for loop