fix syntax error in bash 4.2.24: "kotlin: line 143: [: too many arguments"