functions-public: add function keyword to shell functions

- POSIX-y style shell scripts want the 'function' keyword before
  functions