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

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

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