Most of them are missing quotes, `` -> $(), and -o/-a usage in conditions. Also add few directives disabling checks where were too verbose.
Don't rely on legacy feature of interpreting non-executable files as scripts there.