Improved bc invocation in calc.sh