produce: added commandline flag for chunksize
POSIX compliant function definitions in shell scripts