Fix shell syntax errors