bash arithemtic variable fix