Fix asterisk.sh optimizations.