Fix syntax error '[: missing ]'