use function keyword for function defs

I disagree with this personally, but it's the guideline. In an
effort to make this *slightly* more appropriate, I have removed
the trailing parens from the definitions.

Reference:
http://mywiki.wooledge.org/BashPitfalls#function_foo.28.29