bash for loop syntax error fixed