I haven't downloaded bash 3.1 but I always use "[]" brackets for my arithmetic.

Modify the line
Code:
REMASTER_PERC=($REMASTER_PROGRESS*100)/$REMASTER_NEEDED_SIZE
to read (functionally identical)
Code:
REMASTER_PERC=$[$REMASTER_PROGRESS*100/$REMASTER_NEEDED_SIZE]
and let me know if it helps.