Correct various syntax errors

Still learning when and how to use ' and " in bash scripts...