[openconnect] Make scripts compatible with ash. Contributes to JB#39735
Don't use string substitution or here strings. Also use [ instead of [[ for better compatibility and don't use == with [. Use [ p ] || [ q ] instead of [ p -o q ] since latter is not well defined according to shellcheck.