fixed syntax errors in bash