Remove the non-portable `function`.

`function` isn't a reserved word in dash.  Remove it.