bash: fix incorrect variable names