Fix generate_bash's expr problem once and for all

[BLUDGEONING INTENSIFIES]