Compatibility with non-bash shells

Didn't realize the 'function name {' syntax didn't work on, say, Ubuntu
systems that run dash as the default 'sh'.