Use $((EXPRESSION)) instead of $[EXPRESSION]

$((EXPRESSION)) is POSIX-conform and should be preferred.

Change-Id: I4cde40f9de29231d895adeaec9db070ae71c83cf
Merge "Use $((EXPRESSION)) instead of $[EXPRESSION]"