#609: Fix bash 'build' scripts

Resolves #609.