fix bash syntax errors