Fix math in shell script