Split "[ && ]" into "[ ] && [ ]" to make ShellCheck happy
As requested in acmesh-official/acme.sh/pull/4646 by Neil Pang
Also adapt to DSM 7's API improvements.